class CreateBugLists < ActiveRecord::Migration
  def self.up
    create_table :bug_lists do |t|
      t.integer  :project_id
      t.integer :ownership_model_id
      t.string :name
      t.string :display_name
      t.string :display_name_color, :default => '000000'
      t.binary :description
      t.boolean :use_projections, :default => false
      t.boolean :use_ownership_change, :default => false
      t.boolean :is_verification_list, :default => false
      t.integer :scope_filter_id, :default => 1
      t.binary :expert_query
      t.string :table_column_order, :default => ''
      t.boolean :override_column_order, :default => false
      t.integer :position
      
      t.timestamps
    end
  end

  def self.down
    drop_table :bug_lists
  end
end
